import React from 'react';
import ReactDOM from 'react-dom';

// index.css 全局样式
import './index.css';

import App from './App';
import { Parent } from './Parent';

export const { Provider, Consumer } = React.createContext();

ReactDOM.render(
  <Provider value={'pink'}>
    <Parent />
  </Provider>,
  document.getElementById('root')
);
